<template>
  <div class="home">
    <transition name="ly" mode="out-in"><router-view /></transition>

    <!-- <div class="nav">
      <router-link to="/home/index">首页</router-link>
      <router-link to="/home/bbt">爆爆团</router-link>
      <router-link to="/home/order">订单</router-link>
      <router-link to="/home/mine">我的</router-link>
    </div> -->
    <van-tabbar route class="nav">
      <van-tabbar-item replace to="/home/index" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/home/bbt" icon="fire-o">爆爆团</van-tabbar-item>
      <van-tabbar-item replace to="/home/order" icon="orders-o">订单</van-tabbar-item>
      <van-tabbar-item replace to="/home/mine" icon="contact">我的</van-tabbar-item>
    </van-tabbar>
    
  </div>
</template>

<script>
export default {
  name: "HomeView",
};
</script>
<style scoped>
/* .nav {
  width: 100%;
  position: fixed;
  align-items: center;
  height: 40px;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid gray;
  background-color: white;
  box-sizing: border-box;
}
a {
  color: black;
  text-decoration: none;
}
a.router-link-active {
  color: red;
} */
.ly-enter {
  /* 入场动画的初始状态 */
  opacity: 0;
}
.ly-enter-active {
  /* 入场动画执行过程中的状态 */
  transition: all 0.3s;
}
.ly-enter-to {
  /* 入场动画执行结束时的状态 */
  opacity: 1;
}
</style>
